import BaseCURDApi from '@/framework/infra/base/BaseCURDApi'
import request from '@/utils/request'

class ProductApi extends BaseCURDApi {
  constructor() {
    super('pms/product')
  }

  list = ({ pageNo, pageSize, ...filter }) => {
    return request.get(this.absUrl(), {
      params: {
        pageNo,
        pageSize,
        ...filter
      }
    })
  }
}

export const productApi = new ProductApi()
